Changeset 17267 in webkit
- Timestamp:
- Oct 24, 2006 3:24:18 PM (18 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r17266 r17267 1 2006-10-24 Geoffrey Garen <ggaren@apple.com> 2 3 Rolling back in, now fixed: 4 5 Nixed a few more redundant loading functions in Frame. Did my best to update 6 the non-Mac builds. 7 8 * bridge/mac/FrameMac.h: 9 * bridge/mac/FrameMac.mm: 10 (WebCore::FrameMac::urlSelected): Kept always 'true' argument for userGesture 11 always 'true', because changing it broke the world, and testing seems to 12 indicate that the one caller that might have passed 'false' didn't need to. 13 * page/Frame.cpp: 14 (WebCore::Frame::requestFrame): 15 (WebCore::Frame::frameLoader): 16 (WebCore::Frame::redirectionTimerFired): 17 * page/Frame.h: 18 * platform/gdk/FrameGdk.cpp: 19 * platform/gdk/FrameGdk.h: 20 * platform/gdk/TemporaryLinkStubs.cpp: 21 (FrameGdk::issueCopyCommand): 22 * platform/qt/FrameQt.cpp: 23 * platform/qt/FrameQt.h: 24 * platform/win/TemporaryLinkStubs.cpp: 25 (WebCore::FrameWin::shouldInterruptJavaScript): 26 (WebCore::FrameWin::issueCopyCommand): 27 1 28 2006-10-24 Anders Carlsson <acarlsson@apple.com> 2 29 -
trunk/WebCore/bridge/mac/FrameMac.h
r17260 r17267 120 120 121 121 // FIXME: Merge these and move them into WebFrameLoader. 122 virtual bool openURL(const KURL&);123 virtual void openURLRequest(const FrameLoadRequest&);124 122 void loadRequest(const FrameLoadRequest&, bool userGesture, NSEvent* triggeringEvent = 0, ObjCDOMElement* submitForm = 0, NSMutableDictionary* formValues = 0); 125 123 virtual void urlSelected(const FrameLoadRequest&, const Event* triggeringEvent); -
trunk/WebCore/bridge/mac/FrameMac.mm
r17260 r17267 264 264 } 265 265 266 bool FrameMac::openURL(const KURL &url)267 {268 // FIXME: The lack of args here to get the reload flag from269 // indicates a problem in how we use Frame::processObjectRequest,270 // where we are opening the URL before the args are set up.271 272 FrameLoadRequest request;273 request.m_request.setURL(url);274 request.m_request.setHTTPReferrer(referrer());275 276 loadRequest(request, userGestureHint());277 278 return true;279 }280 281 void FrameMac::openURLRequest(const FrameLoadRequest& request)282 {283 loadRequest(request, userGestureHint());284 }285 286 266 void FrameMac::urlSelected(const FrameLoadRequest& request, const Event* /*triggeringEvent*/) 287 267 { … … 290 270 copy.m_request.setHTTPReferrer(referrer()); 291 271 272 // FIXME: How do we know that userGesture is always true? 292 273 loadRequest(copy, true, _currentEvent); 293 274 } -
trunk/WebCore/page/Frame.cpp
r17260 r17267 239 239 } 240 240 241 #pragma mark END LOADING FUNCTIONS 242 243 bool Frame::openURL(const KURL& URL) 244 { 245 ASSERT_NOT_REACHED(); 246 return true; 247 } 241 #pragma mark BEGIN LOADING FUNCTIONS 248 242 249 243 void Frame::changeLocation(const DeprecatedString& URL, const String& referrer, bool lockHistory, bool userGesture) … … 297 291 } 298 292 299 FrameLoader* Frame::frameLoader()300 {301 return d->m_frameLoader;302 }303 304 293 bool Frame::requestFrame(Element* ownerElement, const String& urlParam, const AtomicString& frameName) 305 294 { … … 320 309 FrameLoadRequest frameRequest; 321 310 frameRequest.m_request = request; 322 frame-> openURLRequest(frameRequest);311 frame->urlSelected(frameRequest, 0); 323 312 } else 324 313 frame = loadSubframe(ownerElement, url, frameName, d->m_referrer); … … 541 530 542 531 #pragma mark END LOADING FUNCTIONS 532 533 FrameLoader* Frame::frameLoader() 534 { 535 return d->m_frameLoader; 536 } 543 537 544 538 KURL Frame::iconURL() … … 1323 1317 // in both IE and NS (but not in Mozilla).... we can't easily do that 1324 1318 // in Konqueror... 1325 if (d->m_scheduledHistoryNavigationSteps == 0) // add && parent() to get only frames, but doesn't matter1326 openURL(url()); /// ## need args.reload=true?1319 if (d->m_scheduledHistoryNavigationSteps == 0) 1320 urlSelected(url(), "", 0); 1327 1321 else { 1328 1322 if (d->m_extension) { -
trunk/WebCore/page/Frame.h
r17260 r17267 110 110 111 111 // FIXME: Merge these methods and move them into FrameLoader. 112 virtual bool openURL(const KURL&);113 virtual void openURLRequest(const FrameLoadRequest&) = 0;114 112 void changeLocation(const DeprecatedString& URL, const String& referrer, bool lockHistory = true, bool userGesture = false); 115 113 virtual void urlSelected(const ResourceRequest&, const String& target, const Event* triggeringEvent, bool lockHistory = false); -
trunk/WebCore/platform/gdk/FrameGdk.cpp
r17264 r17267 201 201 } 202 202 203 bool FrameGdk::openURL(const KURL& url)204 {205 if (!m_client)206 return false;207 208 m_client->openURL(url);209 return true;210 }211 212 203 void FrameGdk::submitForm(const FrameLoadRequest& frameLoadRequest) 213 204 { -
trunk/WebCore/platform/gdk/FrameGdk.h
r17260 r17267 79 79 80 80 void handleGdkEvent(GdkEvent*); 81 virtual bool openURL(const KURL&);82 virtual void openURLRequest(const FrameLoadRequest&);83 81 virtual void submitForm(const FrameLoadRequest&); 84 82 virtual void urlSelected(const FrameLoadRequest&); -
trunk/WebCore/platform/gdk/TemporaryLinkStubs.cpp
r17260 r17267 163 163 void FrameGdk::issueCutCommand() { notImplemented(); } 164 164 void FrameGdk::issueCopyCommand() { notImplemented(); } 165 void FrameGdk::openURLRequest(struct WebCore::FrameLoadRequest const&) { notImplemented(); }166 165 void FrameGdk::issueUndoCommand() { notImplemented(); } 167 166 String FrameGdk::mimeTypeForFileName(String const&) const { notImplemented(); return String(); } -
trunk/WebCore/platform/qt/FrameQt.cpp
r17260 r17267 127 127 } 128 128 129 bool FrameQt::openURL(const KURL& url)130 {131 if (!m_client)132 return false;133 134 m_client->openURL(url);135 return true;136 }137 138 129 void FrameQt::submitForm(const FrameLoadRequest& frameLoadRequest) 139 130 { … … 305 296 { 306 297 // FIXME: Implement this as soon a KPart is created... 307 }308 309 void FrameQt::openURLRequest(const FrameLoadRequest& request)310 {311 urlSelected(request, 0);312 298 } 313 299 -
trunk/WebCore/platform/qt/FrameQt.h
r17260 r17267 49 49 virtual ~FrameQt(); 50 50 51 virtual bool openURL(const KURL&);52 virtual void openURLRequest(const FrameLoadRequest&);53 51 virtual void submitForm(const FrameLoadRequest&); 54 52 virtual void urlSelected(const FrameLoadRequest&, const Event*); -
trunk/WebCore/platform/win/TemporaryLinkStubs.cpp
r17264 r17267 167 167 bool FrameWin::runJavaScriptPrompt(String const&, String const&, String &) { notImplemented(); return 0; } 168 168 bool FrameWin::shouldInterruptJavaScript() { notImplemented(); return false; } 169 bool FrameWin::openURL(KURL const&) { notImplemented(); return 0; }170 169 void FrameWin::print() { notImplemented(); } 171 170 KJS::Bindings::Instance* FrameWin::getAppletInstanceForWidget(Widget*) { notImplemented(); return 0; } … … 173 172 void FrameWin::issueCutCommand() { notImplemented(); } 174 173 void FrameWin::issueCopyCommand() { notImplemented(); } 175 void FrameWin::openURLRequest(const FrameLoadRequest&) { notImplemented(); }176 174 bool FrameWin::passWheelEventToChildWidget(Node*) { notImplemented(); return 0; } 177 175 void FrameWin::issueUndoCommand() { notImplemented(); }
Note: See TracChangeset
for help on using the changeset viewer.